

import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk

import os

import time
from threading import Thread


class MainWindow:
    def __init__(self):

        self.builder = Gtk.Builder()
        self.builder.add_from_file("GUI.glade")

        self.window = self.builder.get_object("MainWindow")
        self.window.connect("destroy", Gtk.main_quit)
        
        # self.entry_title = self.builder.get_object("entry_title")
        self.entry_value_1 = self.builder.get_object("entry_value_1")
        # self.entry_value_2 = self.builder.get_object("entry_value_2")
        # self.entry_value_3 = self.builder.get_object("entry_value_3")
        
        self.image = self.builder.get_object("image")
        
        self.image_path = None
        
        # self.entry_title.connect("changed", self._InputData)
        self.entry_value_1.connect("changed", self._InputData)
        # self.entry_value_2.connect("changed", self._InputData)
        # self.entry_value_3.connect("changed", self._InputData)
    
    def _InputData(self, widget):
        print(self.entry_value_1.get_text())
        
        # self.image.set_from_file("./test_image.png")
    
    def _Run(self):
        self.window.show_all()
        Gtk.main()
        
    def START(self):
        self._Run()

MW = MainWindow()
MW.START()

